package com.lh.tams.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lh.tams.domain.Countryinfo;
import com.lh.tams.service.CountryInfoService;
import com.lh.tams.util.DataGridModel;
import com.lh.tams.util.Page;

@Controller
@RequestMapping("/country")
public class CountryController {
	private CountryInfoService countryInfoService;

	public void setCountryInfoService(CountryInfoService countryInfoService) {
		this.countryInfoService = countryInfoService;
	}
	
	@RequestMapping("/query.adm")
	@ResponseBody
	public Page query(DataGridModel dgm,Countryinfo country){
		return countryInfoService.query(dgm, country);
	}
}
